<?php
namespace catchAdmin\storehouse\model\search;

trait WarehousingSonSearch
{
    public function searchWarehousingIdAttr($query, $value, $data)
    {
        return $query->where('warehousing_id', $value);
    }
    public function searchGoodsIdAttr($query, $value, $data)
    {
        return $query->whereLike('goods_id', $value);
    }
    public function searchGoodsNameAttr($query, $value, $data)
    {
        return $query->whereLike('goods_name', $value);
    }
}
